import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/admin/agreements/add',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/admin/agreements/del',
    method: 'post',
    data
  })
}
export function setStatus(data) {
  return request({
    url: '/admin/agreements/setStatus',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/admin/agreements/update',
    method: 'post',
    data
  })
}
export function queryAll(data) {
  return request({
    url: '/admin/agreements/queryAll',
    method: 'post',
    data
  })
}

export function queryId(data) {
  return request({
    url: '/admin/agreements/queryId',
    method: 'get',
    params: data
  })
}
